entrycompletion: Realize popup after setting screen
authorJonas Ådahl <jadahl@gmail.com>
Wed, 14 Mar 2018 03:54:02 +0000 (11:54 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 14 Mar 2018 03:57:00 +0000 (11:57 +0800)
commitba83a2c46b44d51cec995246f38682f845e4ad69
tree45334d66f07e37d1480f55ec8e1b1ba56822aaf7
parentfc9a71abae776d392961606b40127a65ca8d2dfa
entrycompletion: Realize popup after setting screen

Realization is done as a side effect of calling
_gtk_entry_completion_resize_popup(), but if this is done before the
GdkScreen of the GtkWindow is set up correctly, it may result in the
widget being unrealized when the screen is updated. This may happen
when the file dialog parent window is not using the default GdkDisplay.

To avoid this issue, realize the popup after the screen has been
properly set up.

Fixes #83 in gtk3
gtk/gtkentrycompletion.c